package com.siqi.hr.system.common.model;

import com.siqi.hr.system.custom.entity.FieldRecord;
import com.siqi.hr.system.organization.entity.Employee;

import java.util.List;
import java.util.Map;

/**
 * 拼接列表页面过滤条件部分帮助类
 * @author          xiaogq
 * @date            2016-08-24
 */
public class ExtraParameter {
	/**
	 * 下拉、下拉多选字段集合
	 */
	private List<Map<String, Object>> selectList;
	/**
	 * 表名
	 */
	private String tableName;

	/**
	 * 实体id
	 */
	private Integer entityId;

	/**
	 * 当前登录系统的用户对象信息
	 */
	private Employee employee;

    /**
	 * 下拉类型字段选项是否有空值
	 */
	private Boolean needBlank = true;
	/**
	 * 字段对象信息
	 */
	private FieldRecord field = new FieldRecord();

	/**
	 * 项目根目录地址
	 */
	private String sysServerUrl;

	/**
	 * 是否弹出框查询
	 * @return
     */
	private boolean isTable;

	public Boolean isNeedBlank() {
		return this.needBlank;
	}

	public void setNeedBlank(Boolean needBlank) {
		this.needBlank = needBlank;
	}

	public List<Map<String, Object>> getSelectList() {
		return this.selectList;
	}

	public void setSelectList(List<Map<String, Object>> selectList) {
		this.selectList = selectList;
	}

	public String getTableName() {
		return this.tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public Integer getEntityId() {
		return this.entityId;
	}

	public void setEntityId(Integer entityId) {
		this.entityId = entityId;
	}

	public ExtraParameter() {
	}

	public ExtraParameter(String tableName) {
		this.tableName = tableName;
	}

	public FieldRecord getFieldRecord() {
		return this.field;
	}

	public void setFieldRecord(FieldRecord field) {
		this.field = field;
	}

	public Employee getEmployee() {
		return employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

	public String getSysServerUrl() {
		return sysServerUrl;
	}

	public void setSysServerUrl(String sysServerUrl) {
		this.sysServerUrl = sysServerUrl;
	}

	public boolean isTable() {
		return isTable;
	}

	public void setTable(boolean table) {
		isTable = table;
	}
}
